package com.songqi.common.timer;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @description: 事件定时器
 * @author: songqi(13776346982)
 * @date: 2023/8/10 16:12
 */
@Data
@NoArgsConstructor
public class EventTimer {

    /**
     * 对象id
     */
    private String id;

    /**
     * 开始时间
     */
    private Date startTime;


    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 对象类型：discount:优惠券; activity:活动券；vip：会员卡
     */
    private String objectType;




    public EventTimer(String id, Date startTime, Date endTime, String objectType){
        this.id = id;
        this.startTime = startTime;
        this.endTime = endTime;
        this.objectType = objectType;
    }
}
